import api from './index'
import { axios, request } from '@/utils/request'
import Qs from 'qs'


  //提现
//   export function withdrawist(current,pageSize,mobile,status){
//     return axios({
//       url: '​/withdraw​/manage​/withdraws',
//       method: 'get',
//       params:{            
//         'current':current,
//         'pageSize':pageSize,
//         'mobile':mobile,
//         'status':status
//       },
//       headers: {
//         'Content-Type': 'application/json;charset=UTF-8'
//       }
//     })
//   }

  export function loanList(current,pageSize,mobile,status ) {
    return axios({
      url: 'api/tx/manage/withdraws',
      method: 'get',
      params:{            
        'current':current,
        'pageSize':pageSize,
        'mobile':mobile,
        'status':status
      }
    })
  }


  //钱包提现
export function withdraw(id,price) {
  return axios({
    url: '/api/tx/withdraw',
    method: 'post',
    params:{            
      'id':id,
      'price':price ,
    }
  })
}
//批量删除
export function orderStatus(ids) {
  return axios({
    url: '/api/orderStatus/manage/order_status',
    method: 'detele',
    params:{            
      'ids':ids,
    }
  })
}
//审核提现操作
export function txFunction(status,ids) {
  return axios({
    url: `/api/tx/manage/withdraw/${status}/${ids}`,
    method: 'put',
  })
}


